﻿<Window x:Class="Save_Editor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ctrl="clr-namespace:Save_Editor"
        xmlns:mine="clr-namespace:Save_Editor.Controls"
        Title="Fort Zombie Saved Game Editor" Height="578" Width="879" ResizeMode="CanMinimize" Activated="Window_Activated" xmlns:my="http://schemas.AvalonControls/AvalonControlsLibrary/Controls" Icon="/Save%20Editor;component/Images/myicon.bmp" WindowStartupLocation="CenterScreen" Closing="Window_Closing">
    <Window.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Cheats">
                <MenuItem Header="Super Generators" Click="cheatGenerators">
                    <MenuItem.ToolTip>
                        <TextBlock>Sets all Generator Health and Output to max, and reduce fuel consumption to 1.</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Finish Defences" Click="cheatDefences">
                    <MenuItem.ToolTip>
                        <TextBlock>Completes all Fort defenses</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Super Items" Click="cheatBaseInventory">
                    <MenuItem.ToolTip>
                        <TextBlock>Sets Food, Medicine, and Fuel units to max in Fort inventorys.</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Super Humans" Click="cheatHumans">
                    <MenuItem.ToolTip>
                        <TextBlock>Sets stats of all Humans to max</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Skilled Humans" Click="cheatHumanSkills">
                    <MenuItem.ToolTip>
                        <TextBlock>Sets humans skills to max</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Super Human Items" Click="cheatHumanItems">
                    <MenuItem.ToolTip>
                        <TextBlock>Sets Food, Fuel, and Medicine units to max on all human inventories.</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <MenuItem Header="Super Medic" Click="cheatHumanHealth">
                    <MenuItem.ToolTip>
                        <TextBlock>Resets all human health to 100%</TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                <!-- 
                <MenuItem Header="">
                    <MenuItem.ToolTip>
                        <TextBlock></TextBlock>
                    </MenuItem.ToolTip>
                </MenuItem>
                -->
            </MenuItem>
        </ContextMenu>
    </Window.ContextMenu>
    <Grid>
        <Button Content="Save" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" Name="btnSave" VerticalAlignment="Bottom" Width="75" Click="btnSave_Click" />
        <Button Content="Load" Height="23" HorizontalAlignment="Right" Margin="0,0,87,6" Name="btnLoad" VerticalAlignment="Bottom" Width="75" Click="btnLoad_Click" />
        <CheckBox IsChecked="{Binding AOwrt, Source={x:Static ctrl:Properties.Settings.Default}, Converter={StaticResource app_nbTb}}" Content="Always overwrite the current file" Margin="12,0,0,10" Name="chkAOWrt" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
        <CheckBox IsChecked="{Binding Backup, Source={x:Static ctrl:Properties.Settings.Default}, Converter={StaticResource app_nbTb}}" Content="Always make a backup" Margin="205,0,0,10" Name="chkBackup" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
        <TabControl Margin="12,12,6,35" Name="tabControl1">
            <TabItem Header="Zombie Clock" Name="tabItem1">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="118" />
                        <RowDefinition Height="342" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="322" />
                        <ColumnDefinition Width="507" />
                    </Grid.ColumnDefinitions>
                    <ctrl:DateTimePicker HorizontalAlignment="Left" Margin="6,6,0,0" Width="146" Height="67" VerticalAlignment="Top" x:Name="myTime" Minute="0" Hour="0" Second="0" Min="1/1/0001 12:01 AM" Max="1/14/0001 11:59 PM" />
                    <Button Content="Day 1" Height="23" HorizontalAlignment="Left" Margin="239,6,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="zcFirstDay" />
                    <Button Content="Debug" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" Name="btnDbg" VerticalAlignment="Bottom" Width="75" Click="zcDebug" Visibility="Hidden" Grid.Column="1" Grid.Row="1" />
                    <Button Content="+ Day" Height="23" HorizontalAlignment="Left" Margin="158,6,0,0" Name="button4" VerticalAlignment="Top" Width="75" Click="zcAddDay" />
                    <Button Content="- Day" Height="23" HorizontalAlignment="Left" Margin="158,35,0,0" Name="button5" VerticalAlignment="Top" Width="75" Click="zcSubDay" />
                    <Button Content="Reset" Height="23" HorizontalAlignment="Left" Margin="158,64,0,0" Name="button6" VerticalAlignment="Top" Width="156" Click="zcReset" />
                    <CheckBox Content="Is Paused" Height="16" HorizontalAlignment="Left" Margin="6,93,0,0" Name="checkBox1" VerticalAlignment="Top" Width="308" />
                    <Button Content="Final Battle" Height="23" HorizontalAlignment="Left" Margin="239,35,0,0" Name="button3" VerticalAlignment="Top" Width="75" Click="zcFinalDay" />
                    
                    <mine:ctrlBasePlacement x:Name="BaseData" Grid.Column="1" Margin="6,36,0,0" Height="73" VerticalAlignment="Top" HorizontalAlignment="Left" Width="203" />
                    <Label Content="Base Position" Grid.Column="1" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" VerticalAlignment="Top" />
                </Grid>
            </TabItem>
            <TabItem Header="Base Manager">
                <Grid>
                    <TabControl Margin="6,6,6,6">
                        <TabItem Header="Available Tasks" Name="tabItem2">
                            <Grid>
                                <ListBox HorizontalAlignment="Left" Margin="10,6,0,6" Name="listTasks" Width="160" SelectionChanged="bmChooseTask" />
                                <mine:wpfTaskControl Margin="176,6,0,0" HorizontalAlignment="Left" Width="625" x:Name="TaskData" Height="229" VerticalAlignment="Top" />
                            </Grid>
                        </TabItem>
                        <TabItem Header="Generators" Name="tabItem3">
                            <Grid>
                                <ListBox HorizontalAlignment="Left" Margin="10,10,0,6" Name="listGenerators" Width="160" SelectionChanged="bmChooseGenerator" />
                                <mine:ctrlGeneratorSaveData x:Name="GenData" Margin="176,10,0,0" HorizontalAlignment="Left" Width="625" Height="229" VerticalAlignment="Top" />
                            </Grid>
                        </TabItem>
                        <TabItem Header="Defences">
                            <Grid>
                                <ListBox HorizontalAlignment="Left" Margin="6,6,0,6" Name="listDefences" Width="164" SelectionChanged="bmChooseDefence" />
                                <mine:ctrlDefenceData Margin="176,10,0,0" HorizontalAlignment="Left" Width="625" x:Name="DefData" Height="340" VerticalAlignment="Top" />
                            </Grid>
                        </TabItem>
                        <TabItem Header="Known Projects">
                            <Grid>
                                <ListBox Height="405" Margin="6,6,0,5" Name="listProjects" Width="169" HorizontalAlignment="Left" SelectionChanged="bmChooseProject" />
                                <Label Content="Project" Height="28" HorizontalAlignment="Left" Margin="181,6,0,0" VerticalAlignment="Top" />
                                <ComboBox Height="23" HorizontalAlignment="Left" Margin="234,6,0,0" Name="bmKnownProjects" VerticalAlignment="Top" Width="265" IsReadOnly="False" />
                                <Button Content="Unlock Project" Height="23" HorizontalAlignment="Left" Margin="505,6,0,0" VerticalAlignment="Top" Width="135" Click="bmUnlockProject" />
                            </Grid>
                        </TabItem>
                        <TabItem Header="Inventory">
                            <Grid>
                                <mine:ctrlInventoryData x:Name="InvData" Margin="6,6,0,0" Height="370" VerticalAlignment="Top" HorizontalAlignment="Left" Width="536" />
                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Header="Human Manager">
                <Grid>
                    <mine:ctrlHumanManager HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="HumanData" />
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
